# # socket 客户端
# import socket
# socket_client=socket.socket()
# socket_client.connect(("localhost",8888))
# while True:
#     msg=input("输入发送给服务端的信息")
#     if msg=='exit':
#         break
#     socket_client.send(msg.encode('UTF-8'))
#     recv_data=socket_client.recv(1024)
#     print(f"服务端消息 {recv_data.decode('UTF-8')}")
#
# socket_client.close()
